package com.wey.springboot.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wey.springboot.bean.Grade;
import com.wey.springboot.mapper.GradeMapper;
import com.wey.springboot.util.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GradeService extends BaseService<GradeMapper, Grade> {
  @Autowired
  GradeMapper gradeMapper;

  public List<Map<String, Object>> searchGrdes(Integer id) {
    return gradeMapper.searchGrades(id);
  }

  public List<Map<String, Object>> detail() {
    return gradeMapper.detail();
  }

  @Override
  protected BaseMapper getMapper() {
    return gradeMapper;
  }
}
